package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.MeetingReport;
import com.zhijian.medical.entity.vo.request.MeetingReportSearchVo;
import com.zhijian.medical.entity.vo.response.MeetingReportVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MeetingReportMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MeetingReport record);

    int insertSelective(MeetingReport record);

    MeetingReport selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MeetingReport record);

    int updateByPrimaryKey(MeetingReport record);

    /**
     * 查询总数
     *
     * @param meetingReportSearchVo
     * @return
     */
    int count(MeetingReportSearchVo meetingReportSearchVo);

    /**
     * 查询列表
     *
     * @param meetingReportSearchVo
     * @return
     */
    List<MeetingReportVo> selectList(MeetingReportSearchVo meetingReportSearchVo);

    /**
     * 查询单个
     *
     * @param meetingReportSearchVo
     * @return
     */
    MeetingReportVo selectOne(MeetingReportSearchVo meetingReportSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    MeetingReportVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param meetingReportSearchVo
     * @return
     */
    void deleteByCondition(MeetingReportSearchVo meetingReportSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<MeetingReport> entities);

    /**
     * 根据UserId查询列表
     *
     * @param userId
     * @return
     */
    List<MeetingReportVo> selectListByUserId(Long userId);
}